package com.uyayo.portal.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class EmailRegisterVO {
	
	@NotNull(message = "{loginname.null}")
	@Size(min = 5, max = 36, message = "{loginname.size.error}")
	private String username;
	
	@NotNull(message = "{password.null}")
	@Size(min = 5, max = 36, message = "{password.size.error}")
	private String password;
	
	/**
     * 电子邮箱
     */
	@Pattern(regexp = "(\\w)+(\\.\\w+)*@(\\w)+((\\.\\w+)+)", message = "{email.format.error}")
    private String email;
    
    
	@Pattern(regexp = "[a-zA-Z0-9]{1,4}", message = "{captcha.format.error}")
	private String captcha;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
	
	
}
